Repository navigation
docs(id): resolve the CLI-1..CLI-14 survey disagreements (#13363) - #13641
Merged
Merged
Conversation
Every item verified first-hand against current main; the wrong side was fixed in each case: - CLI-1 (README): the command table no longer gives top-level `list` an `ls` alias the parser does not have; a parse test pins that `id ls` is rejected. - CLI-2 (README): the Cargo quick start no longer presents --no-default-features as the library-only build; the default build already has no web UI, and the flag also removes sandbox and world. - CLI-3: already fixed - `walk` is in the README table (#12772). - CLI-4: verified, no in-repo fix - the source already rejects serve --replace-defaults (pinned by test), spells the defaults file defaults.json, and has walk; the divergence is in previously built binaries, which the book documents. - CLI-5 (serve.rs module doc): lock file spelled .iroh-serve.lock, matching the SERVE_LOCK constant. - CLI-6 (serve/peers --topic help): the hardcoded constants are now described as the fallback they are; defaults.json is the operative default. - CLI-7 (README): the REPL example no longer pipes output to the shell with `|`, an operator the REPL does not have; it uses the shell escape and the |> pipe-in instead. - CLI-8 (README): the find example no longer claims glob pattern matching; the search implementation matches substrings. - CLI-9 (group help): the top-level help no longer lists `join` among the things group can do; group join is an unimplemented stub whose own help says so. - CLI-10 (code): feature gating is now consistent - match-audit and the sandbox world commands (dev, measure, replay, verify) parse in every build and fail at dispatch with "this build has no sandbox support", the same pattern `world` already used, instead of being gated out of the parser. - CLI-11 (help): the clap --format help and the REPL help now each name the other side's default (tag vs union); the REPL help lists the --format flag it accepts. - CLI-12 (REPL banner): the startup banner now lists the full command set the dispatch implements. - CLI-13: already fixed - the README Project Structure matches the split crate tree (rewritten with #13365). - CLI-14 (put --content help): the --help summary line now states the exactly-one-name requirement. The book chapters that recorded these disagreements are updated in the same change to mark them resolved and to state the new gating behaviour where CLI-10 changed it.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 18 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves the fourteen ID book survey disagreements in #13363 (CLI group). Every item was verified first-hand against current main before editing; the wrong side was fixed in each case, and the book chapters that recorded the disagreements are updated in the same change (DOC-01).
Fixed in the README — CLI-1 (
listloses thelsalias the parser does not have), CLI-2 (Cargo quick start: the default build already has no web UI;--no-default-featuresalso removessandbox/world), CLI-7 (REPL example no longer uses the nonexistent|pipe-to-shell; uses!escape and|>pipe-in), CLI-8 (find example no longer claims glob patterns; substring query).Fixed in help text / doc comments at the source — CLI-5 (serve.rs module doc:
.iroh-serve.lock, matching the constant), CLI-6 (serve/peers--topichelp: the constants are the fallback,defaults.jsonis the operative default), CLI-9 (top-levelgrouphelp no longer listsjoin; the stub's own help already states the truth), CLI-14 (put --contentsummary line now states the exactly-one-name requirement).Fixed in code — CLI-10: feature gating is consistent now.
match-auditand the sandbox world commands (dev,measure,replay,verify) parse in every build and fail at dispatch withthis build has no sandbox support(exit 1) — the patternworldalready used — instead of being gated out of the parser (exit 2). CLI-11: clap--formathelp and REPL help each name the other's default (tagvsunion); REPL help lists--format. CLI-12: the REPL startup banner lists the full command set.Already fixed / verified, no change — CLI-3 (
walkentered the README table in #12772), CLI-13 (README Project Structure already matches the split crate tree; rewritten with #13365 — verified crate-by-crate), CLI-4 (source already rejectsserve --replace-defaults, pinned by an existing test, spellsdefaults.json, and haswalk; the divergence lives in previously built binaries and the book already documents it and how to detect it).Tests — two new pins in
cli/tests.rs:id lsis rejected;match-auditparses.Verification (laptop worktree,
nix developin pkgs/id, sccache disabled per #13367):cargo test -p id-cli --lib cli::tests— 144 passed, 0 failed.cargo checkexit 0 for:id-clino-default-features,id-cliworld-only,idno-default-features,iddefault features, plus a final incrementalid-clicheck on the committed tree.id match-audit verify→Error: this build has no sandbox support, exit 1 (was exit 2);id match-audit --helpexit 0; world-onlyid world measure --module …→ same sandbox error, exit 1;id ls→ unrecognized subcommand with thelisttip, exit 2.mdbook buildexit 0; the only warning is the pre-existing unclosed<error>tag inreference/cli-worlds-admin.md, a file this change does not touch.git diff --checkclean.Closes #13363
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.